import 'package:flutter/material.dart';

class GlobalUtils {
  // 工厂模式
  factory GlobalUtils() => _getInstance();

  static GlobalUtils get instance => _getInstance();
  static GlobalUtils _instance;

  String appName;

  String packageName = 'com.xuanmutech.zhuyili';

  String version; //本APP的版本

  String deviceUUID;

  int vipLevel;

  String wechatVersion;

  String headPortrait = ''; //头像

  String nickName = '';

  String yinsiUrl;

  String xieyiUrl;

  String kefuQQId = "2275584144";

  String userUUID;

  String deleteBySendText;

  List<Color> backgroundColors = [
    Colors.blue,
    Colors.blueAccent[100],
    Colors.white,
  ];

  String uMengId = '5f71581e906ad8111716de51';

  GlobalUtils._internal() {
    // 初始化
  }

  static GlobalUtils _getInstance() {
    if (_instance == null) {
      _instance = new GlobalUtils._internal();
      //_instance.setUUID();
    }
    return _instance;
  }
}
